﻿using System.Windows;

namespace HomagChina.CCHCS.Views
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow
    {
        public MainWindow()
        {
            InitializeComponent();
        }

        private void FrameWindow_Closing(object sender, System.ComponentModel.CancelEventArgs e)
        {
            if (HomagGroup.Base.UI.Windows.MessageBox.Show(Utility.GetLocalText("Close application") + "\r\n", Utility.GetLocalText("Prompt message"), MessageBoxButton.OKCancel, MessageBoxImage.Question) == MessageBoxResult.Cancel)
            {
                e.Cancel = true;
            }
        }
    }
}